package com.xyh;

import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Scanner;

@EnableEurekaClient
@SpringBootApplication
public class Application {
    public static void main(String[] args){
        //new SpringApplicationBuilder(Application.class).web(true)
          //      .run(args);0
        Scanner scan=new Scanner(System.in);
        String profiles=scan.nextLine();
        new SpringApplicationBuilder(Application.class).properties("server.port="+profiles).run(args);
    }
}
